Skip to content

reorganized the catch-all others and misc packages into thematic pack…#7493

Open
snabxo wants to merge 4 commits into
TheAlgorithms:masterfrom
snabxo:reorganization
Open

reorganized the catch-all others and misc packages into thematic pack…#7493
snabxo wants to merge 4 commits into
TheAlgorithms:masterfrom
snabxo:reorganization

Conversation

@snabxo

@snabxo snabxo commented Jun 24, 2026

Copy link
Copy Markdown

Description

Organized the algorithms and data structures in the catch all and misc packages into their respective packages.

Related Issue

Fixes #7452

Changes Made

  • Moved MiniMaxAlgorithm.java to src/main/java/com/thealgorithms/backtracking/
  • Moved BrianKernighanAlgorithm.java to src/main/java/com/thealgorithms/bitmanipulation/
  • Moved CRC16.java, CRC32.java, CRCAlgorithm.java, Damm.java, Luhn.java, Verhoeff.java to src/main/java/com/thealgorithms/checksums/
  • Moved Huffman.java to src/main/java/com/thealgorithms/compression/
  • Moved MapReduce.java to src/main/java/com/thealgorithms/datastructures/
  • Moved ArrayLeftRotation.java, ArrayRightRotation.java, BFPRT.java, BoyerMoore.java, InsertDeleteInArray.java, MaximumSumOfDistinctSubarraysWithLengthK.java, MosAlgorithm.java, RangeInSortedArray.java, ShuffleArray.java, ThreeSumProblem.java, TwoPointers.java, TwoSumProblem.java to src/main/java/com/thealgorithms/datastructures/arrays/
  • Moved Dijkstra.java, PageRank.java to src/main/java/com/thealgorithms/datastructures/graphs/
  • Moved PalindromeSinglyLinkedList.java to src/main/java/com/thealgorithms/datastructures/lists/
  • Moved MedianOfRunningArray.java, MedianOfRunningArrayByte.java, MedianOfRunningArrayDouble.java, MedianOfRunningArrayFloat.java, MedianOfRunningArrayInteger.java, MedianOfRunningArrayLong.java, QueueUsingTwoStacks.java to src/main/java/com/thealgorithms/datastructures/queues/
  • Moved LinearCongruentialGenerator.java to src/main/java/com/thealgorithms/devutils/generators/
  • Moved PasswordGen.java to src/main/java/com/thealgorithms/devutils/generators/
  • Moved SkylineProblem.java to src/main/java/com/thealgorithms/divideandconquer/
  • Moved KochSnowflake.java, LineSweep.java, PerlinNoise.java to src/main/java/com/thealgorithms/geometry/
  • Moved IterativeFloodFill.java to src/main/java/com/thealgorithms/graph/
  • Moved ColorContrastRatio.java, Conway.java, FloydTriangle.java, GaussLegendre.java, LowestBasePalindrome.java, Mandelbrot.java, PalindromePrime.java to src/main/java/com/thealgorithms/maths/
  • Moved Sparsity.java to src/main/java/com/thealgorithms/matrix/
  • Moved BankersAlgorithm.java, MemoryManagementAlgorithms.java to src/main/java/com/thealgorithms/memorymanagement/
  • Moved the tests of the above to their respective test packages.
  • Renamed CountFriendsPairingTest.java in others test to SecondCountFriendsPairingTest.java to avoid name conflict at src/test/java/com/thealgorithms/datastructures/dynamicprogramming/
  • Renamed KadaneAlogrithmTest.java in others test to SecondKadaneAlgorithmTest.java to avoid name conflict at src/test/java/com/thealgorithms/datastructures/dynamicprogramming/
  • Renamed Graph class in Dijkstra.java to DijkstraGraph to avoid name conflict with Graph in ConnectedComponent.java in src/main/java/com/thealgorithms/datastructures/graphs/
  • Removed empty misc and others packages after the move in main and test.

Checklist

  • Code compiles successfully.
  • Unit tests passed.
  • Followed repository code style rules.

@codecov-commenter

codecov-commenter commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.87%. Comparing base (51137a1) to head (75df88a).

Files with missing lines Patch % Lines
.../thealgorithms/datastructures/graphs/Dijkstra.java 0.00% 7 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #7493      +/-   ##
============================================
- Coverage     79.89%   79.87%   -0.03%     
+ Complexity     7344     7341       -3     
============================================
  Files           809      809              
  Lines         23850    23853       +3     
  Branches       4699     4700       +1     
============================================
- Hits          19055    19052       -3     
- Misses         4036     4039       +3     
- Partials        759      762       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@snabxo

snabxo commented Jun 25, 2026

Copy link
Copy Markdown
Author

resolved the infer warnings. do I have to resolve the pmd warnings as well? @DenizAltunkapan @yanglbme @alxkm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reorganize the catch-all others/ and misc/ packages into thematic packages

2 participants